package com.csc.banking.domain;

import java.math.BigInteger;
import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

@Entity
@Table(name="savingtransactions")
public class SavingTransaction {

	@Id
	private BigInteger savingTransactionId;
	//private  BigInteger savingAccount;
	private Double funds;
	private Date beginTime;
	private Date endTime;
	private Double amount;
	private String transactionType;
	private String receiverId ;
	private String state;
	//private String admin;
	//private String support;
	private Double currentBalance;
	private Double afterBalance;
	
	@ManyToOne
	@JoinColumn(name="support")
	private SystemUser systemusers;
	@ManyToOne
	@JoinColumn(name="admin")
	private SystemUser sysystemusers;
	
	@ManyToOne
	@JoinColumn(name="savingAccount")
	private SavingAccount  savingaccounts;
	
	public BigInteger getSavingTransactionId() {
		return savingTransactionId;
	}

	public void setSavingTransactionId(BigInteger savingTransactionId) {
		this.savingTransactionId = savingTransactionId;
	}

//	public BigInteger getSavingAccount() {
//		return savingAccount;
//	}
//
//	public void setSavingAccount(BigInteger savingAccount) {
//		this.savingAccount = savingAccount;
//	}

	public Double getFunds() {
		return funds;
	}

	public void setFunds(Double funds) {
		this.funds = funds;
	}

	public Date getBeginTime() {
		return beginTime;
	}

	public void setBeginTime(Date beginTime) {
		this.beginTime = beginTime;
	}

	public Date getEndTime() {
		return endTime;
	}

	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}

	public Double getAmount() {
		return amount;
	}

	public void setAmount(Double amount) {
		this.amount = amount;
	}

	public String getTransactionType() {
		return transactionType;
	}

	public void setTransactionType(String transactionType) {
		this.transactionType = transactionType;
	}

	public String getReceiverId() {
		return receiverId;
	}

	public void setReceiverId(String receiverId) {
		this.receiverId = receiverId;
	}

	public String getState() {
		return state;
	}

	public void setState(String state) {
		this.state = state;
	}

//	public Integer getAdmin() {
//		return admin;
//	}
//
//	public void setAdmin(Integer admin) {
//		this.admin = admin;
//	}

//	public Integer getSupport() {
//		return support;
//	}
//
//	public void setSupport(Integer support) {
//		this.support = support;
//	}

	public Double getCurrentBalance() {
		return currentBalance;
	}

	public void setCurrentBalance(Double currentBalance) {
		this.currentBalance = currentBalance;
	}

	public Double getAfterBalance() {
		return afterBalance;
	}

	public void setAfterBalance(Double afterBalance) {
		this.afterBalance = afterBalance;
	}

	public SystemUser getSystemusers() {
		return systemusers;
	}

	public void setSystemusers(SystemUser systemusers) {
		this.systemusers = systemusers;
	}

	public SavingAccount getSavingaccounts() {
		return savingaccounts;
	}

	public void setSavingaccounts(SavingAccount savingaccounts) {
		this.savingaccounts = savingaccounts;
	}

	
}
